package org.yxt.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 使用feign作为HTTP请求客户端
 * openFeign的使用 接口 + 注解
 *
 * @author Yang douya
 * @date 2021-01-02 23:25
 */

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients //开启使用Openfeign客户端
public class ConsumerFeignOrderMain {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignOrderMain.class, args);
    }
}
